package com.qf.cloud2204.hystrix;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
@EnableHystrix//开启Hystrix功能
@EnableHystrixDashboard//开启监控页面功能
@ServletComponentScan("com.qf.cloud2204.hystrix.servlet")//扫描servlet
public class HystrixAApp {
    public static void main(String[] args) {
        SpringApplication.run(HystrixAApp.class,args);
    }
}
